import BasicLayout from '@/layouts/basic-layout';

const meta = {
  auth: true
};

const pre = 'system-';

export default {
  path: '/system',
  name: 'system',
  redirect: {
    name: `${pre}user`
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'user',
      name: `${pre}user`,
      meta: {
        ...meta,
        title: '用户列表'
      },
      component: () => import('@/pages/user-role/user')
    },
    {
      path: 'org-role',
      name: `${pre}org-role`,
      meta: {
        ...meta,
        title: '组织角色'
      },
      component: () => import('@/pages/user-role/org-role')
    },
    {
      path: 'menu',
      name: `${pre}menu`,
      meta: {
        ...meta,
        title: '菜单管理'
      },
      component: () => import('@/pages/user-role/menu')
    },
  ]
};
